<% if params[list_id ||= "sortable_list"].present? and !!local_assigns[:continue_reordering] -%>
  <script>
    $(document).ready(function(){
      list_reorder.enable_reordering();
    });
  </script>
<% end -%>
